Vivo 手机上运行 appium 自动化测试 出现 socket hang up 的问题解决 · TesterHome 您所在的位置:网站首页 网球 server Vivo 手机上运行 appium 自动化测试 出现 socket hang up 的问题解决 · TesterHome

Vivo 手机上运行 appium 自动化测试 出现 socket hang up 的问题解决 · TesterHome

2023-05-02 21:44| 来源: 网络整理| 查看: 265

问题描述: appium 自动化测试 运行平台 vivo v191 真机 驱动框架 UiAutomator2 现象 自动化代码在 vivo 手机上运行一段时间之后,appium 会报错 Could not proxy command to remote server. Original error: Error: socket hang up 同样的代码运行在其他手机上是不报错的,所以排除自动化代码的问题 appium 日志 [debug] [W3C (9ae907c5)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up [debug] [W3C (9ae907c5)] at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:261:13) [HTTP] 电池 -> 后台高耗电, 把 appium 相关的 app 都加上,然后再运行 appium 自动化测试,妥妥的没有问题啦 😋

配置方法:

最后运行成功啦:



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有